package com.project.bean;

/**
 * 商品实体类
 */
public class ProductBean {
    /**编号*/
    private int id;
    /**商品名称*/
    private String name;
    /**厂家*/
    private String vender;
    /**商品种类*/
    private String type;
    /**建议采购价*/
    private int buyPrice;
    /**建议销售价格*/
    private int sellPrice;
    /**图片*/
    private String photo;
    /**库存数量*/
    private int storeNum=0;


    public ProductBean() {
    }

    public ProductBean(String name, String vender, String type, int buyPrice, int sellPrice, String photo) {
        this.name = name;
        this.vender = vender;
        this.type = type;
        this.buyPrice = buyPrice;
        this.sellPrice = sellPrice;
        this.photo = photo;
    }

    public int getStoreNum() {
        return storeNum;
    }

    public void setStoreNum(int storeNum) {
        this.storeNum = storeNum;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getVender() {
        return vender;
    }

    public void setVender(String vender) {
        this.vender = vender;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getBuyPrice() {
        return buyPrice;
    }

    public void setBuyPrice(int buyPrice) {
        this.buyPrice = buyPrice;
    }

    public int getSellPrice() {
        return sellPrice;
    }

    public void setSellPrice(int sellPrice) {
        this.sellPrice = sellPrice;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    @Override
    public String toString() {
        return "ProductBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", vender='" + vender + '\'' +
                ", type='" + type + '\'' +
                ", buyPrice=" + buyPrice +
                ", sellPrice=" + sellPrice +
                ", photo='" + photo + '\'' +
                ", storeNum=" + storeNum +
                '}';
    }
}
